﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Hisun.Models;
using Hisun.Controllers;

namespace Hisun.View.UserAccount
{
    /// <summary>
    /// 
    /// Copyright (C) 2008 HOHO``
    /// All rights reserved
    /// NameSpace:Hisun.View.UserAccount.ChangePassword
    /// Description :
    /// Created By QiuZhongJie At 2008/10/17 18:26
    /// </summary>
    public partial class ChangePassword : AbcPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void lnkBtnChangePwd_Click(object sender, EventArgs e)
        {
            AbcAccount aa = new AbcAccount();
            if (aa.ModifyPassword(Session[ServerVars.sysSessionUserName].ToString(), txtOldPwd.Text, txtNewPwd2.Text) != 0)
            {
                labMsg.Text = aa.LastError;
            }
            else
                labMsg.Text = "修改密码成功!";
        }
    }
}
